package com.flycun.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name= "user-service",fallback=UserServiceRemoteHystrix.class)
public interface UserServiceRemote {
    @RequestMapping(value = "/user/{id}")
    public Object getCustomer(@PathVariable(value = "id") int id);
}
